package com.mcp.weather.model;

/**
 * 天气查询请求模型
 */
public class WeatherRequest {
    private String city;
    private String extensions;

    public WeatherRequest() {
    }

    public WeatherRequest(String city, String extensions) {
        this.city = city;
        this.extensions = extensions != null ? extensions : "base";
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getExtensions() {
        return extensions != null ? extensions : "base";
    }

    public void setExtensions(String extensions) {
        this.extensions = extensions;
    }

    public boolean isValid() {
        return city != null && !city.trim().isEmpty() && 
               (extensions == null || extensions.equals("base") || extensions.equals("all"));
    }
}

